#include<bits/stdc++.h>
using namespace std;
const int MAX=1e5+5;
int n;
int a[MAX];
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++) cin>>a[i];
    sort(a+1,a+n+1);
    queue<int> Q;
    Q.push(a[1]);
    for(int i=2;i<=n;i++){
        if(a[i]>Q.front()) Q.pop();
        Q.push(a[i]);
    }
    cout<<Q.size()<<'\n';
    return 0;
}